Added test for downcasing and change the before_save method