Fixes for tests for py >= 3.2
Added callback to copy in Template w/ test