Simple tests for IP blacklisting

Tests both simple blacklisting and threshold based.

Change-Id: I086aad6c72a629369b636001a6272f56effb9fbe
Merge "Simple tests for IP blacklisting"