Changed profile activation to be used available by tests.