Wrote test for selecting categories