Fix tests so they use sample configuration