working scalamock test