add securitycritical to exception and test to make sure that assembly ca...

...n be scanned