More eunit tests for security