fixed a typo, added find_by_category and its test