extract first three categories from (test-) json