added tests
fixed an indent