Add tests for NewCategory