Fix test_activate