add documentation for testing mode
implement tests + mock net