#635 test cases