Modifying tests to use a custom valve and removing unwanted dependency from pom.xml

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>