a function that uses missing() successfully
catching invalid state and outcome
updating test cases for missing()