show normal errors in test env

[#83558622]
error formatter accepts error objects
[#83558622]
add code and status to error object
[#83558622]
add error factory
[#83558622]
login service shouldn't check the message of an error
[#83558622]
login service returns rich error
[#83558622]
add missed spec for unauthorized case
[#83558622]