Add test for dynamic auto-binding template, fixes #29