Adding missing unit tests for updating chemical