- adding second test for object style definition

- removing incomplete dataType check
- styling code more like the rest of the project