Moved swap space data to toString() method in HealthMonitor.
Improved serialization tests

(cherry picked from commit 9ac443cf9a5585d7749b184080443f51a4689438)