Added thermal spectrum and related tests.