adding a function to reduce code repetition
removing 'check-test-services' before 'test' due 'nc' malfunction on linux make execution