BUG: Fix for result in states.file.prepend to return the correct result when test option is set (see issue #15397)
Merge pull request #15466 from cimarronm/correct_test_result_states.file.prepend

Bugfix for result returned from states.file.prepend with test option