test and style fixes

Signed-off-by: Doug Hellmann <doug.hellmann@gmail.com>