refactor unsing @before instead @beforeclass to avoind wrond context in graph test cases.