Don't try to fetch templates when running tests in Karma
Suppress debug logging when running tests in Karma
Fix typo
Clean up Layout
Add specs for Layout module