fix updating the session
setup tests in rakefile, add development dependencies and .travis