Test and sample code.