Merge "Add test for libcore API"