Replaced sleep with ajax wait in Subnet tests