tests; size_to_fit bug fix