Tests for masked_store