refactor the beeKeyManagerAPI test