Fixed all tests and added more tests to plugin loader. Change-Id: I97cb3779117d9b29b40e1107e39d6d1c953fcfdf