Added more tests for subtract and occurrence