updated tests and added a view