move mock restler to separate file