Implemented findMethodsOnInstance() and wrote tests for it.