Add testing infrastructure via rspec and travis including some tests

Please merge our work.