Refacted the test

Removed div elements in test.html and added to spec files.