Added rowround function and refactored unit tests.