cache tests and fixes
fixed port binding