added test and timing