test: check for gdb in insert tests

Commits a6cee01 and c48b12f otherwise break the build for people
without gdb.