test (bu$compile): add tests for the newly added promised template API