roodi: writing some tests and refactor them
roodi: writing some tests and refactor them

tcc-unb-fga/debile,opencollab/debile,tcc-unb-fga/debile,mdimjasevic/debile,mdimjasevic/debile,lucaskanashiro/debile,lucaskanashiro/debile,opencollab/debile