Add missing unit tests for VMwareAPISession

This change adds unit tests for the following methods:
* pbm property
* _get_session_cookie
* invoke_api with stale session

It also updates one test for _create_session.

Change-Id: I4ab519a498f844e9c8b2889f84721935dfed1a5b
Merge "Add missing unit tests for VMwareAPISession"