fixed toolchain core test and added some assertions on the contained number of elements