Added unit tests for wxutil.threadsafe decorator.