tests for overwrite and get