added timing calculation to test case