Tests and timing