implements a couple of tests

Signed-off-by: Marcel Schwittlick <marzzzel@gmail.com>
fixes minSelf() function

Signed-off-by: Marcel Schwittlick <marzzzel@gmail.com>