moved the invalid formula test to the right file and added some comments