adding tests, license statement on top of files