fix apn tests