Test suite

Add some tests, and all configuration for grunt test and travis test.