Add a test for Completion.type