Move Wx tests to a lib