added new test cases suggested by John