Added unit tests for JS filters