Added a test that tests the compiler if references are bound correctly. Also added the second copyright notice.