Fleshed out error checking tests