test for API link creation