Add test for json post with apikey