Move tests to test/*-test.js