implemented test1 and test2 (timings and errors)