retab
Added tests for compares and fixed bug found.