added test for elapsed time