All test cases and code