lepermut problem, add some tests to make errors more obvious