test for codes