Added unit test for testing correct readPreference inheritance #759.