Core: Move tests from lib to root folder.