added main tests and comment out prototype of code for localstorage usage