Merge "Add unit tests for invalid transfomations in Layer" into tm-dev