Added test case for nthroot aliasing and fixed code.