Created tests for elements.js methods.

Just initial tests, ultimately the tests will need to be extended and enhanced to provide complete coverage, but  no method can fail outright, or fail to perform it's basic functions without being flagged up now.