updated testing framework and fixed issue #208