Added unit tests for client/js/exceptions.js