added first meaningful test fragments
fixed error message handling