use Mockito to mock varibles in test, fix format and variable name