Fixed a very strange bug. As it turns out tests do not alawys run in
the same order as I thought they did.