added new test for testCode