test the case where the return type is say string, but the user returns null