fix php notice
a test to make sure layout is enabled
add fake wrappers to avoid jittery behavior