added unit test target
fixed couple of minor warnings