start of webmock/API testing. more to fix here