Write the code required to serve vibrational calculation requests. Include all relevant tests to ensure proper handling of all edge cases