Run under security manager

This PR enables running whole testsuite under security manager
also all scripts have been modified to run under it.