Added another test case for elemental compositions and simplified the reaction calculation a little