migrated tests to EUnit