Increased transform error handling & messages

and more mocha tests :)