next day button & test state refactored with ng factories