Added unit-tests for LEGION; Bug with self-oscillation has been discovered