added integration tests with rspec and some test( witch needs to be chenged)