Unit Test, shutdown thread, fixing serializer, new PersistanceException