improved approach to testing