fix renderSource unit tests