fixed errors in mock bean