testing hopfield gibbs