hours model and tests