Updating kernel tests

Fixed codes to be able to perform running times measurements.