added unit tests for network