DRYing, attempts at testing