revamped test selection in build process to fix travis issues and TODO