Added tests + added a getState function to rollView + changed the uniqueid global function position