Removing a custom error diagnostic and replacing it with a stock one. Added a test case to ensure the diagnostic was firing properly.