Added unit-tests t/05-accessors.t; slight refactoring