refactor test and open Mutate method to public