Create table tests, not sure that the js is quite right though