added getGroupForUser  method
add getMessageForUser method
added some test methods