add handlebars
move tests into test folder
test query preparation