added tests for reconstructing vote and survey within resource