Making a view unittest