Error checking
Aded Testcases for the OO-API