Test wrong type
Test when not present
Test primitive and ref
Add javadoc