Fixed tests to work with updated register views function.