wexception unit tests