Cleanup loaded features and constants after dependency tests.

cc @senny
never mind, will be removed with `A`.