moved api aserts