Change prune test to account for the two extra records out of time range

Added two extra records to the test db so prune should now remove 3
rather than 1.
Adding a makefile for test running

May end up leaving the run tests there, as it can set the perlbrew
environment.  May need a better way of handling in the makefile as well.
Clean up some tests remove TEST_COUNT and hard set # of tests

Get rid of an undefined value warning
Stop building the number of tests run and pre-declare