javascript optimizer unit tests