app: cleaning qt-mixup-prevention and fix tests and pep8