refactor qa module testing