added demo of php error hadling in test case