Unit test and general security