Using the new scope block for order to avoid deprecated warning.
Initial tests for learning paths controller and modifications to learning path factory