SERVER-6400 - fix regex parsing error message and add some tests for field ordering