Add tests for ABQ and LTQ, delete dead code