Fixed the mgmt api tests