[core] Unit tests on Option