test for checking operation works