Added template test, adds operating system, fixes #1032

Could simplified to `self.fail(e)`