Updated testing code in prototype3 branch.