Testing the wrong return codes, fixed...