Complete test for ast scanner