Add tests to shared.