Add test for size_to_int function. And make sure the function raises an exception on illigal values