Fixed actions creation, use inheritance for managers, added unit tests.