add mutator and non-mutator methods
fixed test typo