added tests for internet connectivity and some cosmetic stuff