Add tests for bug 1315

since they're written in C, need to add AC_PROG_CC to config.ac as well
regenerate configure and Makefile.in