Moved unit tests from ide-old