Added some tests and declared some custom errors