User has a function that returns a string value with leading spaces such as " order by x". When he attempts to enter this string in Code Tester, leading space is removed and it becomes "order by x". As a result, tests fail.
In order for Code Tester to handle leading or trailing spaces in string literals, change value of input/output parameter to "Expression or SQL type" and then enter parameter value enclosed in single quotes. This is found in Set Value tab pane for each parameter under Single Value field.