test QLearning