test doctrine (not yet finished)