Fixes exceptions in the first test