api docs update and test fix