Added constructor for subscriber class.
Backwards compatible for messages class.
Fixed tests.