Add redirect tests and fixed [path] handling