Add tests and configure for npm link