Correcting syntax in tests