Added missing copyright/license header to tests
Added (failing) test for #1177