refactoring; improved test by checking error.message
refactoring; improved test by checking error.message

byran/cyber-dojo-web,cyber-dojo/web,byran/cyber-dojo-web,byran/cyber-dojo-web,byran/cyber-dojo-web,byran/cyber-dojo-web,cyber-dojo/web,byran/cyber-dojo-web,byran/cyber-dojo-web,cyber-dojo/web,byran/cyber-dojo-web,byran/cyber-dojo-web,cyber-dojo/web