Added print() and to_str() to tests