fixes bug in api set test