Reset cached values if pixels are added to a structure
Added more tests for Structure class