Added test case for fix

Also now you can call just index.php even if you have url rewriting enabled