fix(rest): refactor tests to work without internet connection

Related to: #CAM-2456