Improved tests for at-root directive