Implemented Activator pattern and added test.