added tests and readme to common module