Do not resolve bodies for non-active files
Join build thread in tests for templates