Fixes #9550
Contains some additional tests and element changes based on review.
This makes it possible to use the latest Element classes in the framework tests and to simplify the build process. The license for the included element classes are changed to Apache2