Fixed tests and abstracted {:ok/:fail} determination