wrote nosetests
bug in Q_evaluation removed