Added integration test case for optionality. Closes #16