anchor.diff:  
   %% This function tests if worker application starts properly
   application_start_test2(Config) ->
  +  nodes_manager:check_start_assertions(Config),
     NodesUp = ?config(nodes, Config),
     [Node | _] = NodesUp,
   
  
positive.code: %% ====================================================================
  
  init_per_testcase(application_start_test1, Config) ->
    ?INIT_CODE_PATH,?CLEAN_TEST_DIRS,
  
    NodesUp = test_node_starter:start_test_nodes(1),
    [CCM | _] = NodesUp,
  
    test_node_starter:start_app_on_nodes(?APP_Name, ?VEIL_DEPS, NodesUp, [[{node_type, ccm}, {dispatcher_port, 6666}, {ccm_nodes, [CCM]}, {dns_port, 1312}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}]]),
  
    lists:append([{nodes, NodesUp}], Config);
  
  init_per_testcase(application_start_test2, Config) ->
    ?INIT_CODE_PATH,?CLEAN_TEST_DIRS,
  
    NodesUp = test_node_starter:start_test_nodes(1),
    [CCM | _] = NodesUp,
  
    test_node_starter:start_app_on_nodes(?APP_Name, ?VEIL_DEPS, NodesUp, [[{node_type, worker}, {dispatcher_port, 6666}, {ccm_nodes, [CCM]}, {dns_port, 1312}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}]]),
  
    lists:append([{nodes, NodesUp}], Config);
  
  init_per_testcase(type1, Config) ->
    ?INIT_CODE_PATH,?CLEAN_TEST_DIRS,
  
    NodesUp = test_node_starter:start_test_nodes(1),
    [CCM | _] = NodesUp,
  
    test_node_starter:start_app_on_nodes(?APP_Name, ?VEIL_DEPS, NodesUp, [[{node_type, ccm_test}, {dispatcher_port, 6666}, {ccm_nodes, [CCM]}, {dns_port, 1312}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}]]),
  
    lists:append([{nodes, NodesUp}], Config);
  
  init_per_testcase(type2, Config) ->
    ?INIT_CODE_PATH,?CLEAN_TEST_DIRS,
    test_node_starter:start_deps_for_tester_node(),
  
    NodesUp = test_node_starter:start_test_nodes(1),
    [CCM | _] = NodesUp,
  
    PeerCert = ?COMMON_FILE("peer.pem"),
    Port = 6666,
    test_node_starter:start_app_on_nodes(?APP_Name, ?VEIL_DEPS, NodesUp, [[{node_type, ccm_test}, {dispatcher_port, Port}, {ccm_nodes, [CCM]}, {dns_port, 1315}, {db_nodes, [?DB_NODE]}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}]]),
  
    lists:append([{port, Port}, {peer_cert, PeerCert}, {nodes, NodesUp}], Config);
  
  init_per_testcase(monitoring_test, Config) ->
    ?INIT_CODE_PATH,?CLEAN_TEST_DIRS,
    test_node_starter:start_deps_for_tester_node(),
  
    NodesUp = test_node_starter:start_test_nodes(4),
    [CCM | _] = NodesUp,
    DBNode = ?DB_NODE,
  
    test_node_starter:start_app_on_nodes(?APP_Name, ?VEIL_DEPS, NodesUp, [
      [{node_type, ccm}, {dispatcher_port, 5055}, {ccm_nodes, [CCM]}, {dns_port, 1308}, {control_panel_port, 2308}, {control_panel_redirect_port, 1354}, {rest_port, 3308}, {db_nodes, [DBNode]}, {cluster_monitoring_initialization, 5}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}],
      [{node_type, worker}, {dispatcher_port, 6666}, {ccm_nodes, [CCM]}, {dns_port, 1309}, {control_panel_port, 2309}, {control_panel_redirect_port, 1355}, {rest_port, 3309}, {db_nodes, [DBNode]}, {cluster_monitoring_initialization, 5}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}],
      [{node_type, worker}, {dispatcher_port, 7777}, {ccm_nodes, [CCM]}, {dns_port, 1310}, {control_panel_port, 2310}, {control_panel_redirect_port, 1356}, {rest_port, 3310}, {db_nodes, [DBNode]}, {cluster_monitoring_initialization, 5}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}],
      [{node_type, worker}, {dispatcher_port, 8888}, {ccm_nodes, [CCM]}, {dns_port, 1311}, {control_panel_port, 2311}, {control_panel_redirect_port, 1357}, {rest_port, 3311}, {db_nodes, [DBNode]}, {cluster_monitoring_initialization, 5}, {heart_beat, 1},{nif_prefix, './'},{ca_dir, './cacerts/'}]]),
  
    lists:append([{nodes, NodesUp}, {dbnode, DBNode}], Config);
  
  init_per_testcase(TestCase, Config) ->
    case lists:member(TestCase, [modules_start_and_ping_test, workers_list_actualization_test, callbacks_list_actualization_test]) of
  
negative.code: 
    gen_server:cast({?Node_Manager_Name, CCM}, do_heart_beat),
    gen_server:cast({global, ?CCM}, {set_monitoring, on}),
    nodes_manager:wait_for_cluster_cast(),
    gen_server:cast({global, ?CCM}, init_cluster),
    nodes_manager:wait_for_cluster_init(),
  
    {ConAns, Socket} = wss:connect('localhost', Port, [{certfile, PeerCert}]),
    ?assertEqual(ok, ConAns),
  