Test for wrong API values and error logging