Move 41 tests to libcore, closer to the tested code.

Change-Id: I0ecaacd0e68b8319806555f71ddf347f01b17be9
http://b/3073226
tree: 4b825dc642cb6eb9a060e54bf8d69288fbee4904

This tree is empty.