Main test and some code.