Remove useless puts and add published attr and test