Fixed hash not working at all
Added model test