Fixed custom checks

Custom checks now report proper source location on failure