I'm no expert with .htaccess but don't you need to redirect at some point?
Such as: redirect http://www.yoursite.com/test/testscript/
Again I'm no expert. But maybe try checking out this: http://forums.techguy.org/web-design-development/717997-solved-htaccess-redirect-loop-problem.html