fix assertions
clean up tests when finished
test that close() doesn't call the js-defined returnValue setter