Added particle unit test and added update methods for particles