SES-1676 : Add tests for createLiteralOrFail