added tests to spec