fancier testing with reflection