fixed serviceinstance_test
added unit test for get_by_name