move tests to root, use spec