Changed tests to validate on DOM vs. using spies.