Encode test case in place and passing