Various fixes for project test details queries