add unit tests for Ping model and setup rails env for TravisCI