Move sample code to test block.