Added the posiblity to provide a custom event serializer to the TestContext