updated spec tests to run correctly