Add test replace-gems.c which should have been in before but I missed it