Added some tests for network. Removing spaces

Signed-off-by: Arpit Goyal <agmps17@gmail.com>