Tests and refinements.