Added SubManager.insert() tests + some fixes.