Adding test case for errorResultClass after initialization