#5 Adding qtests. Even fixed 2 bugs.