fixed API unit test: followed API access points change.