Fix error determining regulation version

Also, modify a test to confirm that it works