added test for finding by code