added tests for spaces