Add license header
Make testing less dependent on system classes