Implement logic for testing completion