how to test an empty javascipt object