changed some assertins to have the test working both when the bundle is tested stand-alone and within a symfony2 application