Updated javascript tests / base tests to allow for configuration of custom tables for elements