img: Adding NONETWORK test option at build time

While building a benchmark VM you can disable the networking test by
using NONETWORK=1 option.

This patch also fixes some stylish issues to.