Fixed failing test cases and removed hardcoded server URL.