unit test - can generate categories