Adding tests for Select::groupedlist
Adds some tests for grouped list field.
Adds some tests for filelist, folderlist and imagelist fields.
Adds test for rule with empty regex exception.
Fixes coding standard issues and corrects type of assertions used in a test.