using robolectric context and refactoring