id3 with test functions