Fixed a bug where timeout was hardcoded and changed the test and wait logic to make it simpler
Fixed the network request test and added test to wait twice in same test for two different async calls.