Commented out test_apply due to its async nature.