Added accuracy tests to catch regressions.