Fix random_element spec helper method
Fix spec for normalization factor