Fixing some errors in the testing code

Signed-off-by: Daniel Borchmann <daniel.borchmann@mailbox.tu-dresden.de>