added tests for ast