Added tests and constructor for messages
Added constructor for presence object