test refactoring, fixture and api specs