Add tests for chart routes