improves tests for error on signup by using utitliies.rb file