fix bug in expected hash in specs