Added unit tests for parse.rs