added time measurment for random test
fixed problem with sphere test
wrote some tests