completed api test stubbing out the internet