Start using node assert
added more error tests