Fixed null reference error in Create test