Added specs to cover the [] and []= methods.