fix unit test
added switch statement
added presentInstances and fromNullable to Google Guava Optional example