fix all the tests and add exercises