refactored a test to try out nsubstitute