bug fix with log and location combination, update to assert to throw an error with name of 'AssertionError' to satisfy some external library expecatations