Move master cache tests to src/test