#7 refactor break library. Add chip tests