test the code