Fixed syntax so multiple Node versions are supported
Fixed require path in tests so it works in any context