fix costs history to realtime data, add new test to PSO