Unit test improvment

Signed-off-by: David Noble <dnoble@splunk.com>