Testing attribute definition

I've added tests for all attributes type definitions and improved `timestamp` to work with Date and DateTime objects as well.