Add missing `return`s in tests