fixed error when no input params in render method
updated test example in readme