Updated test to include completed as an argument