added new tests and added estimation of time