added error and interface test