key.size now reflects the same behavior as boto, added unit test