conditionally do template includes to fix lms tests

@stvstnfrd see if that's better