Add unit tests for bubble sort