Fixed errors in tests. Did not make them work.