added test for latest api change