Strange.. My test is working as expected with the exact same setup only difference is I run it from a testcase and not a web application. But in theory the behavior should be the same.