more moving element to class
moving tests and code to Imagine.Element
fixing tests