Use sinon for logger test
Use ~ rather than ^ for npm dependency