Fix AppBar unit tests