Add before save test and typos.rb