Tests are in the wrong places

Move condition after loaded namespaces.