Added tests for extern. #99