Custom exceptions, basic tests