added unit test for apache service