Performed some code cleanup within the core. Moved the test function
from the core to a test file: basic. Refactored the quasi decentralized
algorithm test code.