Added tests to catch unintented public members.
Implemented archive and prefer-stable.