Fixed minute conversion bug. Added assertion testing.