Fully unit tested the parse method