added test for completion method