#386 Fixed error handling for unserializing invalid user type and added tests