setRegistry tests, cleanup other tests