add appkey support
minor test change