Clearer demonstration of raising custom errors
Added simple Angular testing