Adding some extra functionality to stubView

Replaced render function in stubView to store the viewMessage passed as parameter. Also added a new method to stubView to return the lastMessage inserted