allow asynchronous callbacks for jasmine tests