Avoid creating elements unnecessarily
Added inline style test to testcases.js