Fixed webHook problems

	the entire test suite is green
	fix: closed the connection before opening
	in test-datalayer.js

	Commit by: Simon