Added some unit tests on perform_sync().