added specs for Hash type