Use the Windows App Certification Kit (WACK), which is installed as part of the Windows 8 Developer Preview. Instructions for using it can be found on MSDN:
"How to test your application using a set of Windows certificates"
If you want to test existing libraries, you can create a Metro-style application that references these libraries and launches WACK in that application. (Note that if you want to test a static library, you need to use its functionality from the application so that all its functions are connected.)
source share