rgw: add encoding tests for new rgw class types

Signed-off-by: Sage Weil <sage@inktank.com>