Added timeout to test and removed hardcoded ip address