unit tests for OrganizationController::initializeAction and ::getErrorFlashMessage added, code cleanup