Refactoring dashboard feature tests