Added error for no tests found.
Added error codes