split test and code