unit tests for ceres