Resolve promise on create to fix tests