added local_only test cases and implementation
added failing test case