scala helpers test