test type returned not the returned value