unit test selected category returns correct details