Refer to view values correctly in test