added test for the activate function