added test and implemented find_by_status