added tests; tweak ast for element wildcard matches '*'