Use static_assert instead of unit test