Move 41 tests to libcore, closer to the tested code. (2nd half)

Change-Id: I18650718a7e49c84a0cc3c5b0c1172c71d2d54cf
http://b/3073226
42 files changed