Test return code