Strange test behaviour