added copyright info on top
added tests