Add more tests for class_regex in BaseAdminTest

follow up of #1681

Added testing for the class_regex.

/cc @dbu