added functionality to test particles