Added new and edit view tests

[#190]