fixed shared message function, added test for get shared_tests