add test based on handlebars.js issue 901