Added unit tests for client/js/area.js