Adding layering test case
Adding debugging
Improved handling of layer logging
Test fix
Namespace fix
Merge branch 'layerFixes'