Add test for various $ root cases