more tests and fixes

Signed-off-by: Christian Lüthold <biocodr@gmail.com>