better tests, but not perfect

Signed-off-by: Alexander Skjolden <alex@plastboks.net>