Added tests for tarfiles and corrections