Added field and method addition from package reference and some tests for it