Stubbing nginx class