replaced render function in stubView to store the viewMessage. Also added a new method to stubView to return the lastMessage inserted