[WIP] Extract test functionality

Fix #101.
Replace with inheritdoc.