Fixes bugs with tearDown of tests to clean up request scope.