unit test for dot notation