added tests in spec