Support shared cc_test_library

So that shared libraries can be installed under /data/nativetest[64] (or
the host equivalent)

Change-Id: I41b2860365985f36828bd4bf9b6dc651b210822c
diff --git a/cc/test.go b/cc/test.go
index 27b45d7..5418ebf 100644
--- a/cc/test.go
+++ b/cc/test.go
@@ -259,7 +259,8 @@
 }
 
 func NewTestLibrary(hod android.HostOrDeviceSupported) *Module {
-	module, library := NewLibrary(android.HostAndDeviceSupported, false, true)
+	module, library := NewLibrary(android.HostAndDeviceSupported, true, true)
+	library.baseInstaller = NewTestInstaller()
 	test := &testLibrary{
 		testDecorator: testDecorator{
 			linker: library.baseLinker,
@@ -268,7 +269,6 @@
 	}
 	test.testDecorator.Properties.Gtest = true
 	module.linker = test
-	module.installer = nil
 	return module
 }