add a corrupt pcap file for testing
add macro so we can add new tests easily
add source file that holds central functions

move function check_file to the new file
add test for function check_file