Moving the testing trait to the main library

Instead of creating an additional jar, I decided to simply
include a new trait that could be used in tests but wasn't
tightly coupled with a particular testing framework.