added tests for less happy cases