Change the operation so as to throw error.

Getting a bad input, ErrorCall will be thrown.
Test is also changed along with it.