revised spec tests per code review