Unit tests for back and optional