Constraining theories of gravity by fundamental plane of elliptical galaxies