Added unit-test for new learning rules.