Add unit testing js