Fixed issue with quoted underscores in primary key attribute names.
Added a test for #81 and updated test admin url generation