Reinstate duplicate shock node checking

Tests now check that when the same file is pushed, it reuses the shock
node rather than creating another.