parse_var and get-type functions added
Test cases for above functions