backport working quantum template changes; add additional spec tests; bugfix recipes