I'm new to Minecraft commands, so take my comment with a grain of salt. However, you are giving a diamond unless the `test` and `house` score values are identical. Since they both hold the value 3 you don't give the diamond. Shouldn't you use `if` instead of `unless`?
/execute if score @p test = @p house run give @p minecraft:diamond