Added tests and refactored

Created a common test support JS file for both projects.
Added tests for WhisperNote.