Testing attribute definition

I've added tests for all attributes type definitions and improved `timestamp` to work with Date and DateTime objects as well.
Sure! i will do another approach and update asap. :smile: