added "transform" function to transform incoming messages. Useful when messages are coming from some 3rd party service
first unit tests using Karma