added junit tests to ast