added integration tests. changed rspec syntax from "should" to "expect"