Adding tests to verify that dql aliases in criteria are correctly converted