fixed import function
added testing framework for cmake scripts