check syntax and copy code to test env