FIXED: better checking for types for expect values out