testing of find method