add tests for findreturn.js