improved testing exmaple