another attempt at fixing a warning
add a few simple tests