Rethinking doctesting approach