fix failing test in chrome, and cleanup route method