added string redirect, added tests, disabled middleware tests