Clean up promise handling and dependency usage for tests