Added tests for complete when typing