added on the fly test, and correct cpyright in code_type