Fix licensing for tests
Tighten constraints