Wrote tests for util methods

  also changed name of snake_case and camel_case to to_snake_case
  and to_camel_case, respectively.