adding tests for invalid publish and subscribe key