added some tests for attached entities