add spec for loading read_only attributes. Fixes #19