Tweak and add test for railsErrorMap service