Added parse_magnitude method to the parser.
Initial tests for parsing magnitude.