Update tests.js

Sorry small mistake my part, it is missing an "r"