added fetch to test
moved the test logic to the caller to make more possible assertions for different tests