Whaley lands Latics trial