add by hour query
fix first test