tests to my methods
custom exception