added a test
repaired test