fix printing test, ref #288