Test for null bean factory in SerializableReference