cydhcp range view test with bug fixes and refactor