Add some tests, resolve issue #1 and add RandomTextAttribute