Test Fragments and Error message handling

added first meaningful test fragments
fixed error message handling