Merge three leak tests into a single file and enable as part of the
C-api tests. These aren't very good tests though because they will
only be doing what we really want when testing with valgrind is enabled.

Perhaps we should have our own directory for leaks?