This bleeding pattern, lighter and shorter than your usual period, is a common response after the progestin tablet you were prescribed, and it does count as a period for timing purposes.
Next Steps
Since your test on day 8 after stopping the tablet was already negative, you don't need to repeat it unless your period stops coming again or new pregnancy symptoms show up.
Health Tips
If your cycles stay this irregular or light for more than 2 months, see your gynaecologist to check why.