Added test harness code for btreerep