view tests and bug fixes