adjusted knockout typings; added 'templating' tests; the test file structure was refactored; #312