Added junit tests for autowire navigation