Adds test for invalid layout path rendering (__toString).
Fix code standard issue.
Merge pull request #3 from Achal-Aggarwal/unit-tests

Adds some tests.