Added missing license notice.
Added tests.