Added tests for the ElementBuilder class.