added functionality to update contact resource from contactCommandController class with tests