updated test and buildscript