Add spec for loaders. Fix setup of specs