print manager improved, added some tests