Added test cases and pre-determined cases