refactored to testtimer