simplified testing with currying