Make the test work on older ubuntu
Correcting generic method to allow copy of file, and adding unit test to check it
adding more unit tests
adding helpers methods for defining success and failures classes
fixes file_check_exists