added mock type check in test previously added