Add webconsole unit tests, extract HandlersMatcher to util.
Add failure status handling for upload package test.