added more test cases for split_amount view and fixed a bug in the same view