Fix representations default behavior when none of the accept header encodings fit
Add tests for representations