JavaScript Object Testing examples