Adding unit tests for stubs that ensure the APIs and functionality line up. Added some missing functionality to the stub objects as well, to make it more closely line up to the API.