Convert tests to npm test format