Adds xAPI classes and fixes tests.