added test cases for category, entry and random-method