adding test to rbm