unittest for lint engines; code refactoring