fixed q_unit tests